home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / xpcom / nsITimerInternal.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  98 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsITimerInternal.idl
  3.  */
  4.  
  5. #ifndef __gen_nsITimerInternal_h__
  6. #define __gen_nsITimerInternal_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsITimerInternal */
  19. #define NS_ITIMERINTERNAL_IID_STR "6dd8f185-ceb8-4878-8e38-2d13edc2d079"
  20.  
  21. #define NS_ITIMERINTERNAL_IID \
  22.   {0x6dd8f185, 0xceb8, 0x4878, \
  23.     { 0x8e, 0x38, 0x2d, 0x13, 0xed, 0xc2, 0xd0, 0x79 }}
  24.  
  25. class NS_NO_VTABLE nsITimerInternal : public nsISupports {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ITIMERINTERNAL_IID)
  29.  
  30.   /* attribute boolean idle; */
  31.   NS_IMETHOD GetIdle(PRBool *aIdle) = 0;
  32.   NS_IMETHOD SetIdle(PRBool aIdle) = 0;
  33.  
  34. };
  35.  
  36. /* Use this macro when declaring classes that implement this interface. */
  37. #define NS_DECL_NSITIMERINTERNAL \
  38.   NS_IMETHOD GetIdle(PRBool *aIdle); \
  39.   NS_IMETHOD SetIdle(PRBool aIdle); 
  40.  
  41. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  42. #define NS_FORWARD_NSITIMERINTERNAL(_to) \
  43.   NS_IMETHOD GetIdle(PRBool *aIdle) { return _to GetIdle(aIdle); } \
  44.   NS_IMETHOD SetIdle(PRBool aIdle) { return _to SetIdle(aIdle); } 
  45.  
  46. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  47. #define NS_FORWARD_SAFE_NSITIMERINTERNAL(_to) \
  48.   NS_IMETHOD GetIdle(PRBool *aIdle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIdle(aIdle); } \
  49.   NS_IMETHOD SetIdle(PRBool aIdle) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIdle(aIdle); } 
  50.  
  51. #if 0
  52. /* Use the code below as a template for the implementation class for this interface. */
  53.  
  54. /* Header file */
  55. class nsTimerInternal : public nsITimerInternal
  56. {
  57. public:
  58.   NS_DECL_ISUPPORTS
  59.   NS_DECL_NSITIMERINTERNAL
  60.  
  61.   nsTimerInternal();
  62.  
  63. private:
  64.   ~nsTimerInternal();
  65.  
  66. protected:
  67.   /* additional members */
  68. };
  69.  
  70. /* Implementation file */
  71. NS_IMPL_ISUPPORTS1(nsTimerInternal, nsITimerInternal)
  72.  
  73. nsTimerInternal::nsTimerInternal()
  74. {
  75.   /* member initializers and constructor code */
  76. }
  77.  
  78. nsTimerInternal::~nsTimerInternal()
  79. {
  80.   /* destructor code */
  81. }
  82.  
  83. /* attribute boolean idle; */
  84. NS_IMETHODIMP nsTimerInternal::GetIdle(PRBool *aIdle)
  85. {
  86.     return NS_ERROR_NOT_IMPLEMENTED;
  87. }
  88. NS_IMETHODIMP nsTimerInternal::SetIdle(PRBool aIdle)
  89. {
  90.     return NS_ERROR_NOT_IMPLEMENTED;
  91. }
  92.  
  93. /* End of implementation class template. */
  94. #endif
  95.  
  96.  
  97. #endif /* __gen_nsITimerInternal_h__ */
  98.